<?php require('conn.php'); ?>
<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <form action="" method="post">
        <textarea name="" id="" cols="70" rows="10"><?php

            while ($obj = $result->fetch_object()) {         // while 循环中, 将返回的结果集当作对象
                if ($obj->cCusCode == $_POST['text']) {      // 输入的数据是否等于读取的数据
                    continue;                                  // 跳过
                } else {
                    echo $obj->cCusCode;
                    echo $obj->cCusName;
                    echo $obj->cCusAddName;
                    echo "\n";
                }
            }

            ?></textarea>
        <br>
        <input type="text" name="text">
        <input type="submit" value="隐藏">
    </form>

</body>
</html>
<?php
/**
 * User: lie
 * Date: 2020-11-09 22:13
 * description: 缺陷,只能隐藏一条数据
 */

    ?>
